/*
 * Copyright (c)  2015~2020, xforceplus
 * All rights reserved.
 * Project:datacare-orm
 * Id: RowMapper.java   2020-09-29 23-35-46
 * Author: Evan
 */
package cn.datacare.orm.damoin;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * <p>
 * Title:
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: 2015~2020
 * </p>
 * <p>
 * Company/Department: xforceplus
 * </p>
 *
 * @author Evan
 * <b>Creation Time:</b> 2020-09-29 23-35-46
 * @since V1.0
 */
public interface RowMapper<T> {
    /**
     *
     * @param  obj 正常处理后的对象
     * @param  rs 结果集
     * @param  rowNum 处理的记录位置(第几条记录)：可以只针对某一条记录做特殊处理
     * @throws SQLException
     * @return T
     */
    T mapRow(Object obj, ResultSet rs, int rowNum) throws SQLException;
}
